package com.timeriver.service.impl;

import com.timeriver.component.TaskRunnerQueue;
import com.timeriver.service.TaskService;
import org.springframework.stereotype.Service;

@Service
public class TaskServiceImpl implements TaskService {

    @Override
    public boolean runTask() throws Exception {
        return TaskRunnerQueue.addTask(100);
    }
}
